﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TpWeb.Domain.BizObj
{
    public class FiasEntity:IEntity<string>
    {
        [Column("AOGUID")]
        public string Id
        {
            get;
            set;
        }

        public string AoGuid { get; set; }

        public string PostalCode { get; set; }
        
    }

    //[Table("addobj")]
    public class AddrObject : FiasEntity
    {
        public string RegionCode { get; set; }
        public string OffName { get; set; }
        public string ParentGuid { get; set; }
        public string ShortName { get; set; }
        public string ParentName { get; set; }

        public override string ToString()
        {
            return string.Join(" ",OffName,"("+ShortName+"),",RegionCode,PostalCode);
        }
    }
}
